package user;

import book.Book;
import book.BookList;
import opera.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-12
 * Time: 14:19
 */
public abstract class User {
    protected String name;
    protected IOperation[] ioperations;
    public User(String name) {
        this.name = name;
    }

    public abstract int meun();

    public void dowork(int choice, BookList bookList){
        this.ioperations[choice].work(bookList);
    }


}